//
//  SKWeekCollectionViewCell.m
//  SKCalendarView
//
//  Created by shevchenko on 17/3/30.
//  Copyright © 2017年 shevchenko. All rights reserved.
//

#import "SKWeekCollectionViewCell.h"
#import "SKConstant.h"

@interface SKWeekCollectionViewCell ()
@property (nonatomic, strong) UILabel * weekLabel;
@property (nonatomic, strong) UIImageView * bottomLine;

@end;

@implementation SKWeekCollectionViewCell

 - (instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame])
    {
        [self customView];
    }
    return self;
}

#pragma mark - 创建界面
- (void)customView
{
    self.weekLabel = [UILabel new];
    self.weekLabel.textColor = FFColor(0x666666);
    [self addSubview:self.weekLabel];
    self.weekLabel.font = [UIFont systemFontOfSize:17];
    self.weekLabel.textAlignment = NSTextAlignmentCenter;
    [self.weekLabel mas_makeConstraints:^(MASConstraintMaker *make)
    {
        make.center.equalTo(self);
    }];
}

#pragma mark - 外部配置
- (void)setWeek:(NSString *)week
{
    _week = week;
    if (!isEmpty(week))
    {
        self.weekLabel.text = week;
    }
}

- (void)setWeekBackgroundColor:(UIColor *)weekBackgroundColor
{
    _weekBackgroundColor = weekBackgroundColor;
    if (!isEmpty(weekBackgroundColor)) {
        self.backgroundColor = weekBackgroundColor;
    }
}

@end
